package com.palm.platform.domain;

import java.io.Serializable;
import java.sql.Types;

import lombok.Data;
import org.noear.solon.annotation.Note;
import org.noear.solon.validation.annotation.*;
import org.sagacity.sqltoy.config.annotation.Entity;
import org.sagacity.sqltoy.config.annotation.Id;
import org.sagacity.sqltoy.config.annotation.Column;

@Data
@Note("角色管理")
@Entity(tableName="t_role")
public class Role implements Serializable{
    /**
    * 编码
    */
    @Note("编码")
    @Id
    @Length(max=20)
    @Column(name="sn",length=20L,type=Types.VARCHAR,nullable=false)
    private String sn;
    /**
    * 角色名
    */
    @Note("角色名")
    @Length(max=20)
    @Column(name="name",length=20L,type=Types.VARCHAR)
    private String name;
    /**
    * 角色类型
    */
    @Note("角色类型")
    @Length(max=20)
    @Column(name="role_type",length=20L,type=Types.VARCHAR)
    private String roleType;
}
